#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
int change(int n)
{
	int d = n % 10;
	int b = d % 2;
	n /= 10;
	if (n)
	{
		return 10 * change(n) + b;
	}
	return b;

}

int main()
{
	int num = 0;
	scanf("%d", &num);
	printf("%d", change(num));
	return 0;
}